package com.propertypoint.service.business;

import java.util.List;

import com.propertypoint.persitence.dao.impl.AuditDAO;
import com.propertypoint.persitence.dao.impl.AuditDAOImpl;
import com.propertypoint.presentation.model.KeyValue;
import com.propertypoint.presentation.model.Log;
import com.propertypoint.service.general.AuditService;

public class AuditServiceImpl implements AuditService{

	private AuditDAO auditdao=new AuditDAOImpl();
	@Override
	public void logSearchResult(Log log) {
		try {
			auditdao.logSearchResult(log);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	@Override
	public List<KeyValue> getSearchHitsHDBLocation() {
		try {
			return auditdao.getSearchHitsHDBLocation();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}

}
